package com.zyz.bookborrowing.service;

import com.zyz.bookborrowing.bean.ReaderCard;
import com.zyz.bookborrowing.dao.IReaderCardDao;
import com.zyz.bookborrowing.dao.ReaderCardDaoImpl;

import java.util.List;

public class ReaderCardServiceImpl implements IReaderCardService{

    IReaderCardDao cardDao = new ReaderCardDaoImpl();

    @Override
    public List<ReaderCard> list(ReaderCard card) {
        return cardDao.list(card);
    }

    @Override
    public Integer saveReaderCard(ReaderCard card) {
        return cardDao.saveReaderCard(card);
    }

    @Override
    public Integer updateReaderCard(ReaderCard card) {
        return cardDao.updateReaderCard(card);
    }

    @Override
    public Integer deleteById(Integer id) {
        return cardDao.deleteById(id);
    }

    @Override
    public ReaderCard queryById(Integer id) {
        return cardDao.queryById(id);
    }

    @Override
    public List<ReaderCard> queryByStuId(String stuNum) {
        return cardDao.queryByStuId(stuNum);
    }
}
